﻿<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title"><span class="glyphicon glyphicon-lock"></span> 栏目管理</div>
    </div>
    <div class="panel-body">
        <div class="list-group">
            <div class="list-group-item"><span class="glyphicon glyphicon-list"></span>  @Html.ActionLink("添加","Add")</div>
        </div>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title"><span class="glyphicon glyphicon-lock"></span> 栏目列表</div>
    </div>
    <div class="panel-body">
        <ul id="categorytree" style="margin:0;padding:0"></ul>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $.post("@Url.Action("Tree", "Category",new { showIcon=true })", null, function (data) {
            $("#categorytree").jqxTree({ source: data});
        }, "json");
        
    });
</script>